package cn.gson.work.model.pojos;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Objects;

@Entity
public class Hycun {
    private Long cid;
    private Integer hbm4;
    private String hname;
    private String sname5;

    @Id
    @Column(name = "CID")
    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    @Basic
    @Column(name = "HBM4")
    public Integer getHbm4() {
        return hbm4;
    }

    public void setHbm4(Integer hbm4) {
        this.hbm4 = hbm4;
    }

    @Basic
    @Column(name = "HNAME")
    public String getHname() {
        return hname;
    }

    public void setHname(String hname) {
        this.hname = hname;
    }

    @Basic
    @Column(name = "SNAME5")
    public String getSname5() {
        return sname5;
    }

    public void setSname5(String sname5) {
        this.sname5 = sname5;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Hycun hycun = (Hycun) o;
        return Objects.equals(cid, hycun.cid) &&
                Objects.equals(hbm4, hycun.hbm4) &&
                Objects.equals(hname, hycun.hname) &&
                Objects.equals(sname5, hycun.sname5);
    }

    @Override
    public int hashCode() {
        return Objects.hash(cid, hbm4, hname, sname5);
    }
}
